package com.ouyy.volunteerservice.volunteer.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.ouyy.volunteerservice.volunteer.domain.po.volunteerView;
import org.apache.ibatis.annotations.Update;

public interface volunteerViewMapper extends BaseMapper<volunteerView> {
    // 更新点击数
    @Update("UPDATE volunteer_view SET views = views + 1 WHERE id = #{id}")
    int incrementClickCount(Integer id);
}
